/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ASTEC.Bean;

import ASTEC.DaoImpl.SolicitudDaoImpl;
import ASTEC.Dominio.Solicitud;
import java.io.Serializable;
import ASTEC.Dao.SolicitudDAO;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;

/**
 *
 * @author Evelyn
 */
public class SolicitudeBean implements Serializable {
    Solicitud solici;
    SolicitudDAO solidao;
    
    public SolicitudeBean() {
        solici = new Solicitud();
        solidao = new SolicitudDaoImpl();
      
    }
    
     public void registrar() {
         solidao.AgregarSolicitud(solici);
            FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO,
                    "SE REGISTRO", "una Nueva Solicitud"));
         
     }

    
}
